package com.dragon.smtp.service;

import com.dragon.smtp.domain.Mail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.smtp.domain.User;
import com.dragon.smtp.util.DragonResult;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 小龙
 * @since 2022-11-08
 */

public interface IMailService extends IService<Mail> {

    DragonResult sendMail(Mail mail);

    DragonResult getMail(User user);
    DragonResult getSentMail(User user);
    DragonResult getDeletedMail(User user);


    DragonResult starMail(String id);

    DragonResult deleteMail(String id);
    DragonResult markDeletedMail(String id);
    DragonResult restoreDeletedMail(String id);


    DragonResult unstarMail(String id);

    DragonResult getStarMail(User user);

    DragonResult sendDraftMail(Mail mail);

    DragonResult getSentDraftMail(User user);
}
